package com.eliza.springboot.v3.repository.repo.postgresql

import com.eliza.springboot.v3.repository.entity.Song
import io.lettuce.core.dynamic.annotation.Param
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query


interface SongRepository : JpaRepository<Song, Long> {
    @Query("select '*' from music_song u where u.title=:title")
    fun findByName(@Param("title") title: String): Song
}